﻿using MediatR;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace MediatRSample.Services
{
    public class NotificationHandler
        : INotificationHandler<Notification>
    {
        public Task Handle(Notification notification, CancellationToken cancellationToken)
        {
            Console.WriteLine($"{notification.MsgId}已经处理");
            return Task.CompletedTask;
        }
    }
}
